package org.dev.hi

import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import org.dev.hi.demo.HiBannerDemoActivity
import org.dev.hi.demo.HiRefreshDemoActivity
import org.dev.hi.demo.HiTabBottomDemoActivity
import org.dev.hi.demo.HiTabTopDemoActivity
import org.dev.hi.hiui.tab.bottom.HiTabBottom
import org.dev.hi.hiui.tab.bottom.HiTabBottomInfo
import org.dev.hi.item.HiItemActivity

class MainActivity : AppCompatActivity(), View.OnClickListener {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    override fun onClick(v: View?) {
        when (v!!.id) {
            R.id.tv_tab_bottom -> {
                startActivity(Intent(this, HiTabBottomDemoActivity::class.java))
            }
            R.id.tv_hi_refresh -> {
                startActivity(Intent(this, HiRefreshDemoActivity::class.java))
            }
            R.id.tv_hi_banner -> {
                startActivity(Intent(this, HiBannerDemoActivity::class.java))
            }
            R.id.tv_hi_taptop -> {
                startActivity(Intent(this, HiTabTopDemoActivity::class.java))
            }
            R.id.tv_hi_item -> {
                startActivity(Intent(this, HiItemActivity::class.java))
            }
        }
    }
}